﻿<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>background</title>
	<script src="js/jquery.js"></script>
    <link href="js/bootstrap.min.css" rel="stylesheet">
    <link href="js/style.css" rel="stylesheet" type="text/css">
    <script src="js/bootstrap.min.js"></script>
</head>

<body style="margin:0;pading:0;">
<?php
include 'conn_mysql.php';
include 'sidebar.php';

$difang_type=$_REQUEST['difang_type'];
$biaoti=$_REQUEST['biaoti'];
$is_hidden=$_REQUEST['is_hidden'];
if($biaoti)
{
	 $where_str=" and biaoti like '%$biaoti%'";
}

if($is_hidden==2)
{}
else
{$where_str.=" and is_hidden=0";}

?>

<div style="height:80px;">
<input type="button" style="float:right;width:80px;height:30px;border-radius:2px;background-color:#DA4713;color:#FFFFFF;font-family:微软雅黑;font-size:14px;border:1px #000;text-align:center; cursor:pointer;margin-top:20px;margin-right:10%;-webkit-appearance:none;" value="搜索" onClick="shoushuo();" ></input>
<input style="float:right;width:300px;height:30px;border-radius:2px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;margin-top:20px;margin-right:2%;" placeholder="旅游名称" id="biaoti" value="<?php echo $biaoti; ?>"></input>
<select id="is_hidden" style="float:right;width:300px;height:30px;border-radius:2px;color:#000000;font-family:微软雅黑;font-size:14px;padding-left:13px;border:1px solid #C9CACA;margin-top:20px;margin-right:2%;">
			<option value="0"  <?php if(!$is_hidden){ ?> selected <?php }?>  >有效显示</option>
			<option value="2" <?php if($is_hidden==2){ ?> selected <?php }?> >全部显示</option>
		</select>
<SCRIPT LANGUAGE="javascript"> 
	function shoushuo(){
		biaoti=document.getElementById("biaoti").value;
		is_hidden=document.getElementById("is_hidden").value;
		
		window.location.href='xiangmu.php?difang_type=<?php echo $difang_type;?>&biaoti='+biaoti+'&is_hidden='+is_hidden;
	}
</SCRIPT>

</div>
<div id="mind_div" style="width:100px;height:100px;margin:-20px 0 0 180px;">
<?php
//获取对应类别的旅游项目信息
$sql="SELECT * FROM `lvyou_difang_info` WHERE difang_type='$difang_type' $where_str order by sort desc,id desc";


$query = mysql_query($sql);
while($row = mysql_fetch_array($query)){
?>
	<div style="float:left;width:320px;height:150px;margin:40px 0px 0px 40px;background-image:url(<?php echo $row['picture_lujing'];?>);background-repeat:repeat;background-size:100% 100%;background-color:#DA4713;text-align:center;cursor:pointer;" onClick="window.location.href='index.php?id=<?php echo $row['id']?>'">
		<p style="margin-top:150px;font-family:微软雅黑;font-size:16px;"><?php echo $row['biaoti'];?></p>
	</div>
<?php
}
?>

</div>

<script type="text/javascript">
window.onload=function(){
	clientWidth=document.body.clientWidth;//屏幕宽
	clientHeight=window.screen.availHeight;//屏幕高

	document.getElementById("mind_div").style.width=clientWidth-180+"px";
	document.getElementById("mind_div").style.height=clientHeight-350+"px";
	
	
	
}
</script>
</body>








